home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr47 / modex100.zip / MODEX.H < prev    next >
Text File  |  1993-05-07  |  3KB  |  68 lines

  1.  
  2.     /* ===== SCREEN RESOLUTIONS ===== */
  3.  
  4. #DEFINE Mode_320x200  0
  5. #DEFINE Mode_320x400  1
  6. #DEFINE Mode_360x200  2
  7. #DEFINE Mode_360x400  3
  8. #DEFINE Mode_320x240  4
  9. #DEFINE Mode_320x480  5
  10. #DEFINE Mode_360x240  6
  11. #DEFINE Mode_360x480  7
  12.  
  13.     /* ===== MODE X SETUP ROUTINES ===== */
  14.  
  15. int far pascal SET_VGA_MODEX (int Mode, int MaxXpos, int MaxYpos, int Pages);
  16. int far pascal SET_MODEX (int Mode);
  17.  
  18.     /* ===== BASIC GRAPHICS PRIMITIVES ===== */
  19.  
  20. void far pascal CLEAR_VGA_SCREEN (int Color);
  21. void far pascal SET_POINT (int Xpos, int Ypos, int Color);
  22. int  far pascal READ_POINT (int Xpos, int Ypos);
  23. void far pascal FILL_BLOCK (int Xpos1, int Ypos1, int Xpos2, int Ypos2,
  24.                             int Color);
  25. void far pascal DRAW_LINE (int Xpos1, int Ypos1, int Xpos2, int Ypos2,
  26.                            int Color);
  27.  
  28.     /* ===== DAC COLOR REGISTER ROUTINES ===== */
  29.  
  30. void far pascal SET_DAC_REGISTER (int RegNo, int Red, int Green, int Blue);
  31. void far pascal GET_DAC_REGISTER (int RegNo, int* Red, int* Green, int* Blue);
  32.  
  33.     /* ===== PAGE FLIPPING AND SCROLLING ROUTINES ===== */
  34.  
  35. void far pascal SET_ACTIVE_PAGE (int PageNo);
  36. int  far pascal GET_ACTIVE_PAGE ();
  37. void far pascal SET_DISPLAY_PAGE (int PageNo);
  38. int  far pascal GET_DISPLAY_PAGE ();
  39. void far pascal SET_WINDOW (int DisplayPage, int XOffset, int YOffset);
  40. int  far pascal GET_X_OFFSET ();
  41. int  far pascal GET_Y_OFFSET ();
  42. void far pascal SYNC_DISPLAY ();
  43.  
  44.     /* ===== TEXT DISPLAY ROUTINES ===== */
  45.  
  46. void far pascal GPRINTC (int CharNum, int Xpos, int Ypos, int ColorF,
  47.                          int ColorB);
  48. void far pascal TGPRINTC (int CharNum, int Xpos, int Ypos, int ColorF);
  49. void far pascal PRINT_STR (far char* Text, int MaxLen, int Xpos, int Ypos,
  50.                            int ColorF, int ColorB);
  51. void far pascal TPRINT_STR (far char* Text, int MaxLen, int Xpos, int Ypos,
  52.                             int ColorF);
  53. void far pascal SET_DISPLAY_FONT (far char* FontData, int FontNumber);
  54.  
  55.     /* ===== BITMAP (SPRITE) DISPLAY ROUTINES ===== */
  56.  
  57. void far pascal DRAW_BITMAP (far char* Image, int Xpos, int Ypos,
  58.                              int Width, int Height);
  59. void far pascal TDRAW_BITMAP (far char* Image, int Xpos, int Ypos,
  60.                               int Width, int Height);
  61.  
  62.     /* ==== VIDEO MEMORY to VIDEO MEMORY COPY ROUTINES ===== */
  63.  
  64. void far pascal COPY_PAGE (int SourcePage, int DestPage);
  65. void far pascal COPY_BITMAP (int SourcePage, int X1, int Y1, int X2, int Y2,
  66.                              int DestPage, int DestX1, int DestY1);
  67.  
  68.